/*
 * Copyright 2007-2010 kingbi.
 * Creator: mouzb
 */
package com.kingbi.system.roleFunction.service;

import java.util.List;


import com.kingbi.system.roleFunction.model.RoleFunctionModel;

/**
 * @author mouzb
 *
 */
public interface RoleFunctionService {
	
	/**
	 * 添加记录
	 * @param packModel
	 */
	void saveRoleFunction(RoleFunctionModel RoleFunctionModel) throws Exception;
	
	/**
	 * 根据orgCode读取一条记录
	 * @param roleFunctionID
	 * @return
	 */
	RoleFunctionModel loadRoleFunction(int roleFunctionID) throws Exception;
	
	/**
	 * 根据roleFunctionID删除一条记录
	 * @param packID
	 */
	void deleteRoleFunction(int roleFunctionID) throws Exception;
	
	/**
	 * 分页查询机构
	 * @param page
	 * @param max
	 * @return
	 */
	List<RoleFunctionModel> listRoleFunction(RoleFunctionModel RoleFunctionModel,int start,int max) throws Exception;
	
	/**
	 * 验证一条记录
	 * @param page
	 * @param max
	 * @param sql_params
	 * @return
	 */
	public List<RoleFunctionModel> loadVerifyRoleFunction(int page, int max,Object[] sql_params) throws Exception;

	/**
	 * 获取符合条件的总记录数
	 * @param RoleFunctionModel
	 * @return
	 */
    long queryCount(RoleFunctionModel RoleFunctionModel);
	
	
	
}
